<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<!--begin main-->
<div id="main">
  <div id="main_l" class="bdr_1">
    <!--位置导航-->
    <div id="position"><a href="">首页</a><?php echo catpos($catid);?></div>
    <!--下载列表-->
<?php echo tag('phpcms', 'tag_content_down', "SELECT a.contentid,a.catid,a.title,a.style,a.thumb,a.keywords,a.userid,a.updatetime,b.content,b.filesize,b.version,b.classtype,b.language,b.systems,b.stars,a.inputtime,a.islink,a.url FROM `phpcms_content` a, `phpcms_c_down` b WHERE a.contentid=b.contentid AND a.status=99  ".get_sql_catid($catid)." ORDER BY a.contentid DESC", $page, 20, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',), $catid);?>
    <!--分页-->
  </div>
  <div id="main_r">
    <div class="ad_side">
      <script language="javascript" src="data/js.php?id=5"></script>
    </div>
    <!--搜索-->
    <h4>推荐下载</h4>
    <div>
      <ul class="text_list">
        <?php echo tag('phpcms', 'tag_content', "SELECT a.contentid,a.catid,a.typeid,a.areaid,a.title,a.style,a.thumb,a.keywords,a.description,a.userid,a.updatetime,a.inputtime,a.url FROM `phpcms_content` a, `phpcms_content_position` p WHERE a.contentid=p.contentid AND p.posid=4 AND a.status=99  ".get_sql_catid($catid)." ORDER BY a.contentid DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
      </ul>
    </div>
<?php echo block("list_down", 1);?>
    <h4>最近更新</h4>
    <div>
      <ul class="text_list">
        <?php echo tag('phpcms', 'tag_content', "SELECT contentid,catid,typeid,areaid,title,style,thumb,keywords,description,userid,updatetime,inputtime,url,listorder FROM `phpcms_content` WHERE  status=99  ".get_sql_catid($catid)." ORDER BY contentid DESC", 0, 10, array (  'class' => 'url',  'target' => '_blank',  'titlelen' => '46',));?>
      </ul>
    </div>
<?php echo block("list_$catid", 2);?>
  </div>
</div>
<!--end main-->
<?php include template('phpcms','footer'); ?>